<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.message.edit")}</title>
<meta name="author" content="EVOLUTION Team" />
<meta name="copyright" content="EVOLUTION" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript" src="${base}/resources/admin/datePicker/WdatePicker.js"></script>
<style type="text/css">
.roles label {
	width: 150px;
	display: block;
	float: left;
	padding-right: 6px;
}
</style>
<script type="text/javascript">
$().ready(function() {
	
	[@flash_message /]
	
});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo; ${message("admin.message.edit")}
	</div>
	<form id="inputForm" action="save.jhtml" method="post">
		<ul id="tab" class="tab">
			<li>
				<input type="button" value="${message("admin.message.tableOne")}" />
			</li>
		</ul>
		<table class="input tabContent" id="tableOne">
		    <tr>
		       <td colspan="8" class="styleTitle">
		          ${message("admin.message.tableTwoTitle")}
		       </td>
		    </tr>
		    <!-- The first row -->
			<tr>
			    <th>
			        ${message("admin.message.name")}:
			    </th>
			    <td>
			        ${name}
			    </td>
				<th>
				    ${message("admin.message.gender")}:
				</th>
				<td>
			        [#list genderGroup as masterConfig ]
			          [#if "${gender}" == "${masterConfig.cd}" ]
			             ${masterConfig.decode}
			          [/#if]
			        [/#list]			 
				</td>
				<th>
					${message("admin.message.cardId")}:
				</th>
				<td>
				    ${name}
				</td>
			</tr>
			<!-- The second row -->
			<tr>
			    <th rowspan="2">
			        ${message("admin.message.involvedCategory")}:
			    </th>
			    <td colspan="5">
			        ${message("admin.message.intentionalInjuries")}: 
				    [#list involedCategoryGroup as masterConfig ]
				        [#if "${masterConfig.suppCd}" == "1" ]
				           [#if "${civilDispute.caseCategoryInjure}" == "${masterConfig.cd}" ]
				                 ${masterConfig.decode}
				           [/#if]			            
				        [/#if]
				    [/#list]
			    </td>
			</tr>
			<tr>
			   <td colspan="5">
			      ${message("admin.message.intentionalHomicide")}:
				  [#list involedCategoryGroup as masterConfig ]
				     [#if "${masterConfig.suppCd}" == "2" ]
				         [#if "${civilDispute.caseCatetoryKill}" == "${masterConfig.cd}" ]
				              ${masterConfig.decode}
				         [/#if]			            
				     [/#if]
				   [/#list]
			   </td>
			</tr>
			
			<!-- The third row -->
			<tr>
			    <th>
			        ${message("admin.message.civilDispute")}:
			    </th>
			    <td colspan="5">		       
				    [#list civilDisputeGroup as masterConfig ]
			           [#if "${civilDispute.civilDisputeCategory}" == "${masterConfig.cd}" ]
			                 ${masterConfig.decode}
			           [/#if]
				    [/#list]
			    </td>
			</tr>
			
			<!-- The forth row -->
			<tr>
			    <th>
			        ${message("admin.message.civilDisputeCondition")}:
			    </th>
			    <td colspan="5">			        
				    [#list civilDisputeConditionGroup as masterConfig ]
				       [#if "${civilDispute.civilDisputeCondition}" == "${masterConfig.cd}" ]
				          ${masterConfig.decode}
				       [/#if]
				    [/#list]
			    </td>
			</tr>
			
			
			<!-- The fifth row -->
			<tr>
			    <th>
			        ${message("admin.message.civilDisputeResult")}:
			    </th>
			    <td colspan="5">			      
				    [#list civilDisputeResultGroup as masterConfig ]
				       [#if "${civilDispute.civilDisputeResult}" == "${masterConfig.cd}" ]
				          ${masterConfig.decode}
				       [/#if]
				    [/#list]
			    </td>
			</tr>		
			
			
			<!-- The sixth row -->
			<tr>
			    <th>
			        ${message("admin.message.civilDisputeTimeStamp")}:
			    </th>
			    <td colspan="5">
				    [#list civilDisputeTimeStampGroup as masterConfig ]
				       [#if "${civilDispute.civilDisputeTimeStamp}" == "${masterConfig.cd}" ]
				          ${masterConfig.decode}
				       [/#if]
				    [/#list]
			    </td>
			</tr>	
			
			<!-- The seventh row -->
			<tr>
			    <th>
			        ${message("admin.message.caseCategory")}:
			    </th>
			    <td colspan="5">			    
				    [#list caseCategoryGroup as masterConfig ]
				       [#if "${civilDispute.caseCategory}" == "${masterConfig.cd}" ]
				          ${masterConfig.decode}
				       [/#if]
				    [/#list]
			    </td>
			</tr>							
					
			<!-- The ninth row -->
			<tr>
			    <th>
			        ${message("admin.message.mainReason")}:
			    </th>
			    <td colspan="5"> 			        
				    [#list reasonGroup as masterConfig ]
				       [#if "${civilDispute.mainReason}" == "${masterConfig.cd}" ]
				          ${masterConfig.decode}
				       [/#if]
				    [/#list]
			    </td>
			</tr>					
			<!-- the 10 row --> 
			<tr>
			    <th>
			        ${message("admin.message.policerDepartment")}:
			    </th>
			    <td colspan="2">
			        ${civilDispute.policerDepartment}
			    </td>			
			    <th>
			        ${message("admin.message.policerName")}:
			    </th>
			    <td colspan="2">
			        ${civilDispute.policerName}
			    </td>
			</tr>
		</table>
		<table class="input">
			<tr>
				<td style="text-align:center;">
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='${base}/admin/criminalbase/list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>